<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";	
%>
<html>
<head>
<base href="<%=basePath %>"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加菜单</title>
<jsp:include page="../../../common/easyui-css.inc" flush="true"/>
</head>
<body>
<form name="saveForm" id="saveForm" method="post">
<fieldset class="fieldset">
<legend class="legend">菜单基本信息</legend>  		
	<table class="table_save" width="96%" cellspacing="1" cellpadding="1" border="0">	
	<tr>		
		<td class="td_save" width="120" align="right">上级菜单:</td>
		<td width="200"><span id="pname_span">${param.p_name }</span>
			<input type="hidden" name="mpid" id="mpid" value="${param.p_mid }"/>
			<input type="hidden" name="p_mcode" id="p_mcode" value="${param.p_mcode }"/>
			<input type="hidden" name="p_mdepth" id="p_mdepth" value="${param.p_depth }"/></td>
		<td class="td_save" width="120" align="right">菜单名称:</td>
		<td width="200">
		  <input type="hidden" name="mid" id="mid">
		  <input type="text" name="mname" id="mname" value="" class="input easyui-validatebox"  data-options="required:true"/>
		</td>
	</tr>	
	<tr>		
		<td class="td_save" width="120" align="right">菜单样式:</td>
		<td width="200"><input type="text" name="iconCls" id="iconCls" value="" class="input" /></td>
		<td class="td_save" width="120" align="right">是否有效:</td>
		<td width="200">
		  <input type="radio" name="mstate" id="yes" value="1" checked="checked"/>有效&nbsp;&nbsp;
          <input type="radio" name="mstate" value="0" id="no"/>无效
		</td>
	</tr>
	<tr>		
		<td class="td_save" width="120" align="right" >默认图标:</td>
		<td width="200">
		 <input type="text" name="micon" id="micon" value="" class="input" />
		</td>
		<td class="td_save" width="120" align="right">仿手机图标:</td>
		<td width="200">
		   <input type="text" name="phoneIcon" id="phoneIcon" value="" class="input" />
		</td>
	</tr>
	<tr>		
		<td width="120" align="right" class="td_save">仿Windows图标:</td>
		<td width="200">
		 <input type="text" name="winIcon" id="winIcon" value="" class="input" />
		</td>
		<td class="td_save" width="120" align="right">排序号:</td>
		<td width="200">
		  <input type="text" name="seqnum" id="seqnum" value="" class="input" />
		</td>
	</tr>
	<tr>
	  <td class="td_save" width="120" align="right">连接地址:</td>
	  <td colspan="3">
			<input type="text" name="murl" id="murl" value="" class="input" /><br/>
	  </td> 
	</tr>
	<tr>
	  <td class="td_save" width="120" align="right">备注说明:</td>
	  <td colspan="3">
			<input type="text" name="mremark" id="mremark" value="" class="input" /><br/>
	  </td> 
	</tr>	
  </table>
  </fieldset>
  <fieldset class="fieldset">
  <legend class="legend">菜单对应的操作按钮</legend>
  <table width="96%" class="adminlist">
   <tr height="25">
      <th width="120">功能名称
        <input type="hidden" name="jobline" id="jobline" value="0" />
      </th>
	  <th width="120">功能代码</th>	 
	  <th width="100">是否可用</th>
	  <th width="50">排序号</th>
	  <th width="100">按钮样式</th>
	  <th width="80">操作类型</th>	  
	  <th><a id="addline" href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add">添加</a> </th>	    
   </tr>  
	 <tr id="jobline0">	 
    <td>
      <input type="text" name="name0" id="name0" style="width: 120px;" class="input" />
    </td>
    <td>
	  <input type="text" name="code0" id="code0" style="width: 120px;" class="input"/>
	</td>
   <td>
     <input type="radio" name="state0" id="yes0" value="1" checked="checked"/>是&nbsp;&nbsp;<input type="radio" name="state10" id="no0" value="0"/>否
   </td>
   <td>
    <input type="text" name="operseqnum0" id="operseqnum0" size="4" class="input" >
   </td>
   <td>
    <input type="text" name="iconCls0" id="iconCls0" style="width: 100px;" class="input" >
   </td>
   <td>    
    <select name="opertype0" id="opertype0" class="select">
      <option value="FUNTREE">按钮</option>
      <option value="BUSINE">业务</option>
    </select>
   </td>
   <td style="text-align:center;">	
	<a href="javascript:void(0)" style="color:red;" class="easyui-linkbutton" iconCls="icon-remove" onclick="rmline(0);">删除</a> 
   </td>
  </tr>
  <tbody id="job">
  </tbody>  
  </table>  
</fieldset>
</form>
<div id="dlg-buttons" style="text-align: center;margin-top: 10px;margin-right: 20px;"> 
    <a id="menu_save_btn" href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-save">保存</a> 
    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="javascript:parent.$('#addWin').window('close')" iconcls="icon-cancel">取消</a> 
</div> 
<jsp:include page="../../../common/easyui-js.inc" flush="true"/>
<script type="text/javascript" src="pages/sys/menu/addMenu.js"></script>
</body>
</html>
